<?php

namespace App\Http\Controllers;
use App\Services\CommonService;
use Illuminate\Http\Request;

class LinkageController extends Controller
{
    public function province(){
        $common = new CommonService;
        $_data['province_list'] = $common->getProvinceList();
        return response()->json($_data);
    }

    public function city($id){
        $common = new CommonService;
        $_data['city_list'] = $common->getCityList($id);
        return response()->json($_data);
    }

    public function county($id){
        $common = new CommonService;
        $_data['county_list'] = $common->getCityList($id);
        return response()->json();
    }
}
